package VN.EDU.IMIC.DEVELOPER.TRINHCAOSANG.BaiTapObject.Exc5;


import java.util.Scanner;

public class CoupleViews {

    public static void main(String[] args) {
        CoupleData coupleData  = new CoupleData();
        int Age;
        String Status;
        String Gender;
        String mName;
            Scanner scanner = new Scanner(System.in);
            System.out.println("Your name ?");
            mName = scanner.nextLine();
            System.out.println("Your age ? ");
            Age = scanner.nextInt();


            System.out.println("Giới tính");
            Gender = scanner.nextLine();

            System.out.println("Doc than, Ket hon, Ly hon");
            Status = scanner.nextLine();

            CoupleData mData = new CoupleData();
            mData.setName(mName);
            mData.setAge(Age);
            mData.setStatus(Status);
            mData.setGender(Gender);

            RegisController controller = new RegisController(mData);
            if (controller.checkRegis()){
                System.out.println("You can join in");
        }else {
                System.out.println("You have not permit to join");
            }

    }
}
